<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->

<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->

<!--[if !IE]><!--> <html lang="en" class="no-js"> <!--<![endif]-->

<!-- BEGIN HEAD -->
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<!-- Meta, title, CSS, favicons, etc. -->
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="description"
			content="Bootstrap - 简洁、直观、强悍、移动设备优先的前端开发框架，让web开发更迅速、简单。">
		<meta name="author" content="Bootstrap中文网">

		<title>JavaScript插件 · Bootstrap</title>
		<!-- Bootstrap core CSS 
		  注意：此文件跟随官网最新版本更新，随时会有改变。建议使用下面v3.0.3版本的CDN链接！
		 -->
		<link
			href="<%=request.getContextPath()%>/AdminLogin/css/bootstrap.css"
			rel="stylesheet">

		<!-- Hi，如果你要在自己的网站上引入bootstrap样式文件的话，请使用当前最新版本v3.0.3的CDN链接，页面加载速度会更快！
		<link rel="stylesheet" href="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/css/bootstrap.min.css">
		-->

		<!-- Documentation extras -->
		<link href="<%=request.getContextPath()%>/AdminLogin/css/docs.css"
			rel="stylesheet">
		<link href="<%=request.getContextPath()%>/AdminLogin/css/github.css"
			rel="stylesheet">

		<!--[if lt IE 9]><script src="../docs-assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
		<!--[if lt IE 9]>
		  <script src="http://cdn.bootcss.com/html5shiv/3.7.0/html5shiv.min.js"></script>
		  <script src="http://cdn.bootcss.com/respond.js/1.3.0/respond.min.js"></script>
		<![endif]-->

		<!-- Favicons -->
		<link rel="apple-touch-icon-precomposed" sizes="144x144"
			href="http://v3.bootcss.com/docs-assets/ico/apple-touch-icon-144-precomposed.png">
		<link rel="shortcut icon"
			href="http://v3.bootcss.com/docs-assets/ico/favicon.png">
		</head>
<!-- END HEAD -->

<body style="height: 100%;width: 100%;margin: 0;padding: 0;">

		<!-- Tabs begin============================== -->
		<ul id="myTab" class="nav nav-tabs">
			<li class="active" id="lihome">
				<a href="#home" data-toggle="tab">Home</a>
			</li>
			<!-- 
			<li class="">
				<a href="#profile" data-toggle="tab" id="myDiv">
				Profile
				</a>
			</li>
			 -->
		</ul>
		<div id="myTabContent" class="tab-content"  style="height: 560px;">
			<div class="tab-pane fade active in" id="home" style="height: 560px;">
				<iframe id=loadFrame src="" style="height:560px;width: 100%;border: 0px;"></iframe>
			</div>
			<!-- 
			<div class="tab-pane fade" id="profile">
				<p>
					Food truck fixie locavore, accusamus mcsweeney's marfa nulla
					single-origin coffee squid. Exercitation +1 labore velit, blog
					sartorial PBR leggings next level wes anderson artisan four loko
					farm-to-table craft beer twee. Qui photo booth letterpress, commodo
					enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum
					PBR. Homo nostrud organic, assumenda labore aesthetic magna
					delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit
					sapiente labore stumptown. Vegan fanny pack odio cillum wes
					anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa
					terry richardson biodiesel. Art party scenester stumptown, tumblr
					butcher vero sint qui sapiente accusamus tattooed echo park.
				</p>
			</div>
			 -->
		</div>
		<!-- Tabs end============================== -->

		<!-- JS and analytics only. -->
		<!-- Bootstrap core JavaScript
================================================== -->
		<!-- Placed at the end of the document so the pages load faster -->
		<script src="<%=request.getContextPath()%>/AdminLogin/js/jquery.js"></script>

		<!-- Bootstrap core JS file
  注意：此文件跟随官网最新版本更新，随时会有改变。建议使用下面v3.0.3版本的CDN链接！
 -->
		<script src="<%=request.getContextPath()%>/AdminLogin/js/bootstrap.js"></script>

		<!-- Hi，如果你要在自己的网站上引入bootstrap JS文件的话，请使用当前最新版本v3.0.3的CDN链接，页面加载速度会更快！
<script src="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/js/bootstrap.min.js"></script>
-->

		<script src="<%=request.getContextPath()%>/AdminLogin/js/holder.js"></script>
		<script src="<%=request.getContextPath()%>/AdminLogin/js/highlight.js"></script>
		<script>hljs.initHighlightingOnLoad();</script>

		<script
			src="<%=request.getContextPath()%>/AdminLogin/js/application.js"></script>



		<!-- Analytics
================================================== -->
		<script type="text/javascript">
	    var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
	    document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F3d8e7fc0de8a2a75f2ca3bfe128e6391' type='text/javascript'%3E%3C/script%3E"));
	    </script>
		<script src="<%=request.getContextPath()%>/AdminLogin/js/h.js"
			type="text/javascript"></script>
			
			
			
		<!-- 右键菜单 begin -->
		<script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
		<script src="js/jquery.contextMenu.js" type="text/javascript"></script>
		<link href="css/jquery.contextMenu.css" rel="stylesheet"
			type="text/css" />

		<script type="text/javascript">
			
		function buildMenu(tab) {
			// Show menu when #myDiv is clicked
			$("#li"+tab+"").contextMenu({
				menu: 'myMenu'
			},
				function(action, el, pos) {
				//do something
				//var prevTab = $("#li"+tab).prev();
				var prevTabContent = $("#"+tab).prev();
				if(prevTabContent.attr("id") == "home"){
					if($("#"+tab).next().attr("id") != undefined)
						prevTabContent = $("#"+tab).next();
						
				}

				/* 右键菜单关闭当前Tab */
				$("#li"+tab+"").remove();
				$("#"+tab+"").remove();

				/* 关闭Tab后，当前选中Tab改为被关闭Tab的前一个Tab，不用担心越界，因Home无法被关闭 */
				//prevTab.attr('class','active');
				//prevTabContent.attr('class','tab-pane fade active in');

				self.parent.frames["left"].toggleTab(this.document,prevTabContent.attr("id"));
			});
			
			// Show menu when a list item is clicked
			$("#myList UL LI").contextMenu({
				menu: 'myMenu'
			}, function(action, el, pos) {
				alert(
					'Action: ' + action + '\n\n' +
					'Element text: ' + $(el).text() + '\n\n' + 
					'X: ' + pos.x + '  Y: ' + pos.y + ' (relative to element)\n\n' + 
					'X: ' + pos.docX + '  Y: ' + pos.docY+ ' (relative to document)'
					);
			});
			
			//开启右键菜单
			$("#disableMenus").click( function() {
				$('#li'+tab+', #myList UL LI').disableContextMenu();
				$(this).attr('disabled', true);
				$("#enableMenus").attr('disabled', false);
			});
			
			// 关闭右键菜单
			$("#enableMenus").click( function() {
				$('#li'+tab+', #myList UL LI').enableContextMenu();
				$(this).attr('disabled', true);
				$("#disableMenus").attr('disabled', false);
			});
			
			// Disable cut/copy
			$("#disableItems").click( function() {
				$('#myMenu').disableContextMenuItems('#cut,#copy');
				$(this).attr('disabled', true);
				$("#enableItems").attr('disabled', false);
			});
			
			// Enable cut/copy
			$("#enableItems").click( function() {
				$('#myMenu').enableContextMenuItems('#cut,#copy');
				$(this).attr('disabled', true);
				$("#disableItems").attr('disabled', false);
			});				
			$('#myMenu').disableContextMenuItems('#cut,#copy,#paste,#delete,#edit');
		};
			
		</script>
		<ul id="myMenu" class="contextMenu">
			<li class="quit separator">
				<a href="#close">close</a>
			</li>
			<li class="cut separator">
				<a href="#cut">Cut</a>
			</li>
			<li class="copy">
				<a href="#copy">Copy</a>
			</li>
			<li class="paste">
				<a href="#paste">Paste</a>
			</li>
			<li class="delete">
				<a href="#delete">Delete</a>
			</li>
			<li class="edit separator">
				<a href="#edit">Edit</a>
			</li>
		</ul>
		<!-- 右键菜单 end -->
		</body>
</html>